import Vue from 'vue'
import App from './App.vue'
import {initRouter} from './router'
import './theme/index.less'
import Antd from 'ant-design-vue'
import echarts from "echarts"
// import "echarts/map/js/china"che
import Viser from 'viser-vue'
import store from './store'
import 'animate.css/source/animate.css'
// import Plugins from '@/plugins'
import {initI18n} from '@/utils/i18n'
import bootstrap from '@/bootstrap'
import 'moment/locale/zh-cn'
// import dataV from '@jiaminghi/data-view'
// import china from "echarts/map/json/china.json"
import navbar from "@/components/navbar"
// import VueAMap from 'vue-amap';
// echarts.registerMap('china',china)
 
import { decoration9,scrollBoard,digitalFlop } from '@jiaminghi/data-view'
const router = initRouter(store.state.setting.asyncRoutes)
const i18n = initI18n('CN')

// Vue.use(VueAMap);

// VueAMap.initAMapApiLoader({
//   key: 'bbdc9ebbaa012ed980b829154111e512',//自己在高德地图平台上的key值
//   plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor','AMap.ControlBar','AMap.MouseTool','AMap.GeometryUtil','AMap.DistrictSearch'],//需要的高德地图插件，需要什么插件添加什么插件（这里只是其中一部分）
//   // 默认高德 sdk 版本为 1.4.4
//   v: '1.4.4',
//   uiVersion:'1.0.11'
//   });

// Vue.use(dataV)
Vue.use(decoration9)
Vue.use(scrollBoard)
Vue.use(digitalFlop)
Vue.use(Antd)
Vue.config.productionTip = false
Vue.use(Viser)
// Vue.use(Plugins)
Vue.prototype.$echarts = echarts
bootstrap({router, store, i18n, message: Vue.prototype.$message})
Vue.component('navbar',navbar)
new Vue({
  router,
  store,
  i18n,
  render: h => h(App),
}).$mount('#app')
